package com.yb.web.runner;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import com.yb.TopJUIWebApplication;

@Component
public class TopJUIWebApplicationRunner implements ApplicationRunner {
	
	@Value("${server.port}")
	private String serverPort;
	
	private Logger logger = LoggerFactory.getLogger(TopJUIWebApplication.class);

	@Override
	public void run(ApplicationArguments args) throws Exception {
		// TODO Auto-generated method stub
		logger.info("TOPJUI-WEB启动成功！");
		logger.info("http://localhost:" + serverPort);
	}
}
